package com.liuhangkai.firstpro.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName(value="Post",autoResultMap = true)
public class Post {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String subject;
    @TableField(exist = false)
    private Author author;
    @TableField(exist = false)
    private String draft;
   // @TableField(exist = false)
    public List<Comment> comments;

}
